package com.mzpai.product.service.impl;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mzpai.product.mapper.SystemStoreMapper;
import com.mzpai.product.model.SystemStore;
import com.mzpai.product.service.SystemStoreService;
import com.mzpai.service.impl.BaseServiceImpl;
/**
 *
 * <b>门店基本信息 | Service</b><br>
 *
 * yanglijun 2021-03-20 09:53:39
 * 
 *  @version 1.0.0
 *
 */
@Service
public class SystemStoreServiceImpl extends BaseServiceImpl<SystemStore> implements SystemStoreService {

	Logger logger = LoggerFactory.getLogger(SystemStore.class);

	@Autowired 
	private SystemStoreMapper mapper;
	
	@Override
	public int save(SystemStore target) {
		mapper.insert(target);
		return target.getId();
	}

	@Override
	public SystemStore queryByPrimaryId(Integer id) {
		SystemStore systemStore=mapper.queryByPrimaryId(id);
		return systemStore;
	}
}